{extend name="base" /}
{block name="css"}
{/block}
{block name="body"}
<!-- 主要内容 开始 -->
<div class="weui-tab__bd-item">
  <header class="weui-navBar weui-navBar-fixed">
    <a href="javascript:history.go(-1);" class="weui-navBar-item">
        <i class="icon iconfont icon-fanhui"></i>
    </a>
    <div class="weui-center">
        <span class="weui-center-title">测试页面</span>
    </div>
    <a href="javascript:;" class="weui-navBar-item">
    </a>
  </header>
  <div class="weui-loadmore weui-loadmore_line">
    <span class="weui-loadmore__tips">敬请期待</span>
  </div>

  
</div>
<!--弹窗-->

<!-- 主要内容 结束 -->
{/block}
{block name="js"}
<script type="text/javascript">
  $(function () {
    //上传图片
    $.ajax({
          url: "http://qcwd.com/api/testing/index.html",
          type: 'POST',
          beforeSend: function(xhr) {
                   //xhr是原生ajax中网络请求对象，jQuery中已经封装好的
                    // 利用请求头携带token数据
                    xhr.setRequestHeader('Token', "6e96r1ew6ew12ewe1ew6")
                },
          contentType: "application/json",
          data:"{'name':'aiqinhai','age':'18'}",
          dataType: "json",
          success: function(res){
            console.log(res);
          },
          error: function(err){
            $.toast(err.msg,'text');
          }
        });
  });
</script>
{/block}